import service from '../service'

/**
 * 计划列表
 * @param {*} params
 */
export const list = params => {
  return service({
    url: 'admin/plan/list',
    method: 'get',
    params: params
  })
}

/**
 * 计划详情
 * @param {*} params
 */
export const info = params => {
  return service({
    url: 'admin/plan/info',
    method: 'get',
    params
  })
}

/**
 * 手动执行计划
 */
export const manualExePlan = params => {
  return service({
    url: 'admin/plan/manual/exe',
    method: 'get',
    params: params
  })
}

/**
 * 手动取消计划
 */
export const cancelPlan = params => {
  return service({
    url: 'admin/plan/manual/cancel',
    method: 'get',
    params
  })
}

/**
 * 查询订单状态
 */
export const statusQuery = params => {
  return service({
    url: 'admin/plan/status/query',
    method: 'get',
    params
  })
}

/**
 * 退款
 */
export const refund = params => {
  return service({
    url: 'admin/plan/manual/refund',
    method: 'get',
    params
  })
}


/**
 * 重新制定
 */
export const redevelopment = params => {
  return service({
    url: 'admin/plan/redevelopment',
    method: 'post',
    params
  })
}

/**
 * 发送短信
 */
export const smsSend = params => {
  return service({
    url: 'admin/plan/sms/send/message',
    method: 'post',
    params
  })
}

/**
 * 发送微信
 */
export const messageToWechat = params => {
  return service({
    url: 'admin/plan/message/to/wechat',
    method: 'post',
    params
  })
}